const isMobile = /Android|webOS|iPhone|iPod|iPad|BlackBerry|Phone|Mobile/i.test(navigator.userAgent)
// if(isMobile){
const documentEl = document.documentElement
const resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize'
const recalc = function() {
  const clientWidth = documentEl.clientWidth
  if (!clientWidth) return
  documentEl.style.fontSize = 1 * (clientWidth / 750) + 'px'
}
if (document.addEventListener) {
  window.addEventListener(resizeEvt, recalc, false)
  document.addEventListener('DOMContentLoaded', recalc, false)
}
// }
export default isMobile
